package com.css.fxfzysx.modules.vaomeFacilities.entity;

import cn.afterturn.easypoi.excel.annotation.Excel;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;
import java.util.Date;

/**
 * czt_important_project_his_damage
 * 重大工程历史震害数据主表
 */
@Table(name = "czt_important_project_his_damage")
@Data
public class CipHisDamageEntity {

    /**
     * id
     */
    @Id
    @Column(name = "ciphd_id")
    private String ciphdId;

    /**
     * 编号
     */
    @Column(name = "ciphd_code")
    private String ciphdCode;

    /**
     * 地震名称
     */
    @Column(name = "seism_name")
    @Excel(name = "地震名称")
    private String seismName;

    /**
     * 发生时间
     */
    @JsonFormat(pattern="yyyy-MM-dd",timezone = "GMT+8")
    @Excel(name = "发生时间")
    @Column(name = "seism_time")
    private Date seismTime;

    /**
     * 震级
     */
    @Excel(name = "震级")
    @Column(name = "magnitude")
    private String magnitude;

    /**
     * 重大工程类别
     */
    @Column(name = "project_type")
    private String projectType;

    /**
     * 设防情况
     */
    @Excel(name = "设防情况")
    @Column(name = "fortification")
    private String fortification;

    /**
     * 年代
     */
    @Excel(name = "年代")
    @Column(name = "years")
    private String years;

    /**
     * 创建人
     */
    private String createUser;

    private String userName;

    /**
     * 地震动参数
     */
    @Excel(name = "地震动参数")
    @Column(name = "params")
    private BigDecimal params;

    /**
     * 破坏状态
     */
    @Excel(name = "破坏状态")
    @Column(name = "break_state")
    private String breakState;

    /**
     * 创建时间
     */
    @JsonFormat(pattern="yyyy-MM-dd HH:mm:ss",timezone = "GMT+8")
    private Date createTime;

    /**
     * 修改人
     */
    private String updateUser;

    /**
     * 修改时间
     */
    private Date updateTime;

    /**
     * 删除标记
     */
    private String delFlag;

    private String role;

    public String startTime;
    public String endTime;
}
